<?php

function V_Contacts($arrayData, $mode) {
    $ulr = "?" . MODUL . "=home&" . ACTION . "=" . $mode;
    ?>
    <h3>Cập nhật thông tin liên hệ</h3>
    <form enctype="multipart/form-data" action="<?= $ulr ?>" method="post" name="frm" onSubmit="return validateForm();">
        <input type="hidden" name="id" id="id" value="<?= $arrayData['id']; ?>"/>
        <table width="950px" cellpadding="5" border="1">
    	<tr style="background-color: #99CCFF">
    	    <th colspan="2">Thông tin liên hệ</th>
    	</tr>
    	<tr>
    	    <td width="200px"><strong>Tên Website : </strong></td>
    	    <td>
    		<input style="width: 400px" type="text" name="name_site" id="name_site" value="<?= $arrayData[3]['info_content'] ?>"/>
    		<input type="hidden" name="name_site_hidden" id="name_site_hidden" value="<?= $arrayData[3]['id'] ?>"/>
    	    </td>
    	</tr>
    	<tr>
    	    <td><strong>Địa chỉ : </strong></td>
    	    <td>
    		<textarea name="address_site" id="address_site" style="width: 500px;height: 70px"><?= $arrayData[4]['info_content'] ?></textarea>
    		<input type="hidden" name="address_site_hidden" id="address_site_hidden" value="<?= $arrayData[4]['id'] ?>"/>
    	    </td>
    	</tr>
    	<tr>
    	    <td><strong>SĐT : </strong></td>
    	    <td>
    		<input style="width: 150px" type="text" name="dt_lien_he" id="dt_lien_he" value="<?= $arrayData[5]['info_content'] ?>"/>
    		<input type="hidden" name="dt_lien_he_hidden" id="dt_lien_he_hidden" value="<?= $arrayData[5]['id'] ?>"/>
    	    </td>
    	</tr>
    	<tr>
    	    <td><strong>Email: </strong></td>
    	    <td>
    		<input style="width: 300px" type="text" name="email_site" id="email_site" value="<?= $arrayData[6]['info_content'] ?>"/>
    		<input type="hidden" name="email_site_hidden" id="email_site_hidden" value="<?= $arrayData[6]['id'] ?>"/>
    	    </td>
    	</tr>
    	<tr>
    	    <td><strong>Tọa độ bản đồ :</strong></td>
    	    <td>
    		<input style="width: 200px" type="text" name="coordinates" id="coordinates" value="<?= $arrayData[8]['info_content'] ?>"/>
    		<input type="hidden" name="coordinates_hidden" id="coordinates_hidden" value="<?= $arrayData[8]['id'] ?>"/>
    	    </td>
    	</tr>
    	<tr>
    	    <td colspan="2">
    		<div style="float: right">
    		    <input type="reset" name="reset"  value="Nhập lại"/>
    		    <input type="submit" name="Submit" value="Cập nhật"/>
    		</div>
    	    </td>
    	</tr>
        </table>
    </form>
    <?
}
?>
